package helper.com.utils;

import helper.com.exception.CustomException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 大忽悠
 * @create 2022/5/22 22:04
 */
@Slf4j
public class ErrorUtil {
    public static  void commonHandleError(Exception e){
        log.error("发生错误: ",e);
        throw new CustomException(e.getMessage());
    }
}
